/* 疾病详情页面样式 */
.disease-detail-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding-bottom: 20px;
}

/* 头部导航栏 */
.header-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.custom-navbar {
  --height: 56px;
  --border-bottom: none;
  --background-color: transparent;
  --title-font-size: 18px;
  --title-font-weight: 600;
  --title-color: #2c3e50;
}

.custom-navbar :global(.adm-nav-bar) {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px) !important;
}

.custom-navbar :global(.adm-nav-bar-back-arrow) {
  font-size: 20px;
  color: #2c3e50;
}

.custom-navbar :global(.adm-nav-bar-title) {
  font-size: 18px;
  font-weight: 600;
  color: #2c3e50;
}

/* 免责声明横幅 */
.disclaimer-banner {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  margin: 0;
  padding: 16px 20px;
  position: relative;
  overflow: hidden;
}

.disclaimer-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
  opacity: 0.3;
}

.disclaimer-text {
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  text-align: center;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

/* 疾病名称标题 */
.disease-title {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  margin: 16px 20px 0;
  padding: 24px 20px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.disease-title h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: #2c3e50;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 详情内容 */
.detail-content {
  padding: 0 20px;
  margin-top: 16px;
}

/* 信息卡片 */
.detail-section {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.detail-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.section-title {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  padding: 16px 20px;
  position: relative;
  overflow: hidden;
}

.section-title::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.section-content {
  padding: 20px;
  color: #34495e;
  font-size: 15px;
  line-height: 1.7;
  background: rgba(255, 255, 255, 0.8);
}

/* 特殊样式：病理部分 */
.detail-section:nth-child(1) .section-title {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

/* 特殊样式：症状部分 */
.detail-section:nth-child(2) .section-title {
  background: linear-gradient(135deg, #feca57 0%, #ff9ff3 100%);
}

/* 特殊样式：宜与忌部分 */
.detail-section:nth-child(3) .section-title {
  background: linear-gradient(135deg, #48dbfb 0%, #0abde3 100%);
}

/* 特殊样式：中药治疗部分 */
.detail-section:nth-child(4) .section-title {
  background: linear-gradient(135deg, #1dd1a1 0%, #10ac84 100%);
}

/* 特殊样式：西药治疗部分 */
.detail-section:nth-child(5) .section-title {
  background: linear-gradient(135deg, #a55eea 0%, #8854d0 100%);
}

/* 加载状态 */
.loading-container {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.loading-text {
  font-size: 18px;
  color: #fff;
  font-weight: 500;
}

/* 空数据状态 */
.empty-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  margin: 20px;
  border: 2px dashed rgba(102, 126, 234, 0.3);
}

.empty-text {
  font-size: 16px;
  color: #7f8c8d;
  text-align: center;
}

/* 响应式设计 */
@media (max-width: 375px) {
  .disease-title {
    margin: 12px 16px 0;
    padding: 20px 16px;
  }
  
  .disease-title h1 {
    font-size: 24px;
  }
  
  .detail-content {
    padding: 0 16px;
  }
  
  .section-title {
    padding: 14px 16px;
    font-size: 15px;
  }
  
  .section-content {
    padding: 16px;
    font-size: 14px;
  }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
  .disease-detail-container {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  }
  
  .header-navbar {
    background: rgba(44, 62, 80, 0.95);
  }
  
  .custom-navbar :global(.adm-nav-bar-back-arrow),
  .custom-navbar :global(.adm-nav-bar-title) {
    color: #ecf0f1;
  }
  
  .disease-title {
    background: rgba(44, 62, 80, 0.95);
  }
  
  .disease-title h1 {
    color: #ecf0f1;
  }
  
  .detail-section {
    background: rgba(44, 62, 80, 0.95);
  }
  
  .section-content {
    background: rgba(44, 62, 80, 0.8);
    color: #ecf0f1;
  }
}
